home *** CD-ROM | disk | FTP | other *** search
- unit InitTheMenus;
-
- interface
- uses
- PrintTraps, Sound, MyGlobals;
-
- procedure Init_My_Menus; {Initialize the menus}
-
- implementation
-
- procedure Init_My_Menus; {Initialize the menus}
- const
- Menu1 = 1001; {Menu resource ID}
- Menu2 = 1002; {Menu resource ID}
- Menu3 = 1003; {Menu resource ID}
- Menu4 = 1004;
- begin {Start of Init_My_Menus}
- ClearMenuBar; {Clear any old menu bars}
-
- AppleMenu := GetMenu(Menu1);
- InsertMenu(AppleMenu, 0);
- AddResMenu(AppleMenu, 'DRVR');
-
- M_File := GetMenu(Menu2);
- InsertMenu(M_File, 0);
-
- M_Edit := GetMenu(Menu3);
- InsertMenu(M_Edit, 0);
-
- M_Extend := GetMenu(Menu4);
- InsertMenu(M_Extend, 0);
-
- DrawMenuBar;
-
- end; {End of procedure Init_My_Menus}
-
- end.